package com.xinruke.hostels.dailymanage.mapper;

import com.xinruke.hostels.common.po.YwRuzhuDingdanZixiang;
import com.xinruke.hostels.dailymanage.interfaces.dto.roomstatus.RSCheckInDetailQueryDTO;
import com.xinruke.hostels.dailymanage.interfaces.dto.roomstatus.RSCheckInDetailQueryResultDTO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface YwRuzhuDingdanZixiangMapper extends Mapper<YwRuzhuDingdanZixiang> {

    RSCheckInDetailQueryResultDTO getDetail(RSCheckInDetailQueryDTO params);


    List<RSCheckInDetailQueryResultDTO> listLeftToday(@Param("jiudianId") Integer jiudianId, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    /**
     * 查询已经入住的房间列表
     * @param jiudianId 酒店id
     * @return 已经入住的房间列表
     */
    List<RSCheckInDetailQueryResultDTO> listCheckInRoom(Integer jiudianId);
}